-
Notifications
You must be signed in to change notification settings - Fork 14k
Issue 149164 fix #149373
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Issue 149164 fix #149373
Conversation
|
Some changes occurred in compiler/rustc_codegen_llvm/src/builder/autodiff.rs cc @ZuseZ4 |
|
r? @davidtwco rustbot has assigned @davidtwco. Use |
This comment has been minimized.
This comment has been minimized.
…ion in /compiler/rustc_codegen_llvm/src/intrinsic.rs
This comment has been minimized.
This comment has been minimized.
|
If this code works, then you should also be able to remove some more code, as per:
I marked the locations as fixme in https://github.com/rust-lang/rust/pull/149033/files Also, did you verify that the test cases still pass with your changes? Here are the instructions to do so: r? me |
|
Sounds good, I will update the code and ensure it will pass the test cases. |
|
Hi there, I checked out this commit, which is the last commit before I made the commits in this PR. I tried to follow the build steps in this link you gave: https://rustc-dev-guide.rust-lang.org/autodiff/installation.html#build-instructions, but the build fails with errors due to being unable to compile core and rustc-demangle. Both errors are caused by "process didn't exit successfully" and have this at the end: exit code: 0xc0000005, STATUS_ACCESS_VIOLATION. Could you please help with this issue? |
Addressed Issue #149164: Simplify autodiff handling of dependencies (rlib)
Updated adjust_activity_to_abi to accept a function pointer type instead of Instance and use fn_abi_of_fn_ptr instead of fn_abi_of_instance.
Also updated the arguments passed into the adjust_activity_to_abi call in compiler/rustc_codegen_llvm/src/intrinsic.rs.